import request from '@/utils/request'

// 查询费率管理列表
export function listCostRateMapping(query) {
  return request({
    url: '/finance/costRateMapping/list',
    method: 'post',
    data: query
  })
}

// 查询费率管理详细
export function getCostRateMapping(id) {
  return request({
    url: '/finance/costRateMapping/' + id,
    method: 'get'
  })
}

// 新增费率管理
export function addCostRateMapping(data) {
  return request({
    url: '/finance/costRateMapping/add',
    method: 'post',
    data: data
  })
}

// 修改费率管理
export function updateCostRateMapping(data) {
  return request({
    url: '/finance/costRateMapping/update',
    method: 'post',
    data: data
  })
}

// 删除费率管理
export function delCostRateMapping(id) {
  return request({
    url: '/finance/costRateMapping/delete/' + id,
    method: 'post'
  })
}

export function openCostRateMapping(id) {
  return request({
    url: '/finance/costRateMapping/open/' + id,
    method: 'post'
  })
}

export function closeCostRateMapping(id) {
  return request({
    url: '/finance/costRateMapping/close/' + id,
    method: 'post'
  })
}